<?php
$CONF = array();

//定义全局变量
//define(collectorServer,"http://127.0.0.1:9031/");
define('odsServer',"http://test.6deer.com/");
define('opsManagerServer',"http://120.79.10.97:9011/");
define('collectorServer',"http://120.79.10.97:9031/");
define('cdkServer',"http://120.79.10.97:9040");

// localhost替换服务器上ip  如果域名昂文 把域名根目录替换成对应域名
// if(php_uname("n") === 'TODD-PC') {
// 	// localhost替换服务器上ip
//     //设置静态资源目录
// 	$CONF['staticUrl'] = 'http://47.93.246.30/';
// }

$CONF['staticUrl'] = odsServer.'static/';

$CONF['timeLimit'] = '200';	// 查询数据设置超时单位(秒)
$CONF['viewAll'] = 0;	// 显示全部  0 关闭, 1开启

// 读取服务器信息by配置
$CONF['readByConf'] = 0;	// 默认0 读取下面的接口 数据, 服务器信息读取本地

// 数据查询url地址
$CONF['url'] = array(
	'fetch_operation' => collectorServer."fetch_operation", 	// 获取实时数据
	'fetch_operation_today' => collectorServer."fetch_operation_today", 	// 获取实时数据(当日新增)
	'fetch_statistics' => collectorServer."fetch_statistics",  // 获取历史数据
	'daily_analyze' => collectorServer."daily_analyze",	// 手动运算运营数据
	'fetch_game'   => collectorServer.'fetch_game',		// 获取游戏信息
	'create_game'   => collectorServer.'create_game',	// 创建游戏
	'fetch_server'  => collectorServer.'fetch_server',	// 获取服务器
  'fetch_general'  => collectorServer.'fetch_general',	// 获取指定日期 平台 渠道 数据
	'serverlist' => opsManagerServer.'serverlist',			// 线上运维服务器从这里获取
  'fetch_tendency' => collectorServer."fetch_tendency", 	// 获取实时数据走势图
  'allnotice' => odsServer."gateway/allnotice", 	// 公告查询
  'noticeManager' => odsServer."gateway/noticeManager", 	// 更新公告
  'serversforstate' => odsServer."gateway/servers", 	// 区服列表
  'serverManager' => odsServer."gateway/manager", 	// 服务器设置
);

// 充值对账 Url
$CONF['rechargeUrl'] = array(
	'fetch_order' => collectorServer."fetch_order", 		  // 游戏订单查询
	'fetch_recharge' => collectorServer."fetch_recharge",  // 获取指定puid 的订单
	'fetch_bills' => collectorServer."fetch_bills",		  // 获取指定渠道的特定时间段的订单
	'fetch_recharge_rank' => collectorServer."fetch_recharge_rank",		  // 获取充值排行信息
	'fetchCallback' => odsServer."recharge/www/getOrderByPuid.php",		  // 获取充值排行信息
	'reCallbackUrl' => odsServer."recharge/www/reCallback.php",		  // 获取充值排行信息
	'getTotalMonthcard' => odsServer."recharge/www/index.php?mod=Monthcard&do=getTotalMonthcard",		  // 获取充值排行信息
	'getServerMonthcardNums' => odsServer."recharge/www/index.php?mod=Monthcard&do=getServerMonthcardNums",		  // 购买月卡用户
	'getReBuyMonthcardNums' => odsServer."recharge/www/index.php?mod=Monthcard&do=getReBuyMonthcardNums",		  // 二次购买用户
);

// 数据分析
$CONF['dataAnalysis'] = array(
	'fetch_gold_source' => collectorServer."fetch_gold?changetype=1", 		  // 砖石来源
	'fetch_gold_use' => collectorServer."fetch_gold?changetype=2", 		  	  // 砖石消耗
	'fetch_tutorial_step'=> collectorServer."fetch_tutorial_step",			  // 新手步骤
	'fetch_tutorial_level'=> collectorServer."fetch_tutorial_level",			  // 新手等级
	'fetch_activity'=> collectorServer."fetch_activity",			  // 活动效果查询
	'fetch_activity_statistics'=> collectorServer."fetch_activity_statistics",			  // 活动统计信息
	'getLevelInfo'=> odsServer."www/selectLevel.php",
	'getLossLevelInfo'=> odsServer."www/selectLossLevel.php",
    'fetch_loss' => collectorServer."fetch_loss", 	// 流失等级分布
    'level_distribution' => collectorServer."level_distribution", 	// 全服等级分布
    'recharge_level_num' => collectorServer."recharge_level_num", 	// 全服等级分布
);

$CONF['rechargeSection'] = array(
	0 => array(
		'id' => '11',
		'name' => '大于500000',
		'minPay' => '500000',
		'maxPay' => '10000000',
	),
	1 => array(
		'id' => '10',
		'name' => '200000-500000',
		'minPay' => '200000',
		'maxPay' => '500000',
	),
	2 => array(
		'id' => '9',
		'name' => '100000-200000',
		'minPay' => '100000',
		'maxPay' => '200000',
	),
	3 => array(
		'id' => '8',
		'name' => '50000-100000',
		'minPay' => '50000',
		'maxPay' => '100000',
	),
	4 => array(
		'id' => '7',
		'name' => '10000-20000',
		'minPay' => '10000',
		'maxPay' => '20000',
	),
	5 => array(
		'id' => '6',
		'name' => '5000-10000',
		'minPay' => '5000',
		'maxPay' => '10000',
	),
	6 => array(
		'id' => '5',
		'name' => '2000-5000',
		'minPay' => '2000',
		'maxPay' => '5000',
	),
	7 => array(
		'id' => '4',
		'name' => '1000-2000',
		'minPay' => '1000',
		'maxPay' => '2000',
	),
	8 => array(
		'id' => '3',
		'name' => '500-1000',
		'minPay' => '500',
		'maxPay' => '1000',
	),
	9 => array(
		'id' => '2',
		'name' => '200-500',
		'minPay' => '200',
		'maxPay' => '500',
	),
	10 => array(
		'id' => '1',
		'name' => '100-200',
		'minPay' => '100',
		'maxPay' => '200',
	),
	11 => array(
		'id' => '0',
		'name' => '小于100',
		'minPay' => '0',
		'maxPay' => '100',
	),
);


// cdk服务器地址
$CONF['cdkUrl'] = cdkServer;

// cdk下载
$CONF['cdkDownloadUrl'] = cdkServer."/cdks/";

// ops服务器地址
$CONF['postShellOps'] = opsManagerServer."ops";

// 获取客户端Log
$CONF['fetch_client_log'] = collectorServer."fetch_client_log";
